<template>
  <div class="fullscreen">
    <i @click="toggle" class="el-icon-full-screen"></i>
  </div>
</template>

<script>
// 导入开启/关闭全屏插件
import screenfull from 'screenfull'
export default {
    name: 'fullscreen',
    methods: {
        toggle(){
            screenfull.toggle()
        }
    },
}
</script>

<style lang="scss">
.fullscreen {
    margin-right: 16px;

    i{
        font-size: 26px;
    }
}
</style>
